<div style="width:100%">
<div class="blank10"></div>
<%= error_messages_for :user_detail %>
<!--以下为Detail title信息-->
<div id="title1" align="left">
    <%=image_tag "title_icon1.gif" %><!--此处应添加详细信息图片-->
    <h1 class="padding01">User Details</h1>
</div>
<!--以下为Detail表单-->
<div id="Tab1">
    <span></span>
	<!--
	<div class="Menubox">
	    <ul>
	      <li id="one1" class="hover">用户详细信息</li>
	      <li id="one2" style="height:34px;"></li>
	      <li style="height:34px;"></li>
	    </ul>
 	</div>
	-->
    <% form_for :user, :url => { :action => :detail_update, :id => @user.id} do |u| %>
    <% fields_for  @user.user_detail do |f| %>
    <div class="Contentbox">
        <div id="con_one_1" class="hover">
            <div class="reginfo">
                <div class="titleName">
                    性别: 
                </div>
				<% for s in DSex.find(:all) %>
                <%=radio_button_tag( "dsex",s.id, s.id==@user_detail.sex_id ? true:false, :class => "radio"  ) %><%= h(s.sex_name) %>
                <% end %>
                <div class="blank14"></div>
				<!-- 
				<hr>
				<div class="titleName">
                    性别2: 
                </div>
				<% for s in DSex.find(:all) %>
                <%= f.radio_button :sex_id, s.id , :class => "radio" %><%= h(s.sex_name) %>
                <% end %>
				<hr>
				-->
                <div class="titleName">
                    体型: 
                </div>
				<%= f.select :somatotype_id, DSomatotype.find(:all).map {|c| [ c.somatotype_name, c.id ] },{:prompt => " "} %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    恋爱状况: 
                </div>
				<% for s in DMarriage.find(:all) %>
                <%=radio_button_tag( "dmarriag", s.id, s.id==@user_detail.marriage_id ? true:false, :class => "radio"  ) %><%= h(s.marriage_name) %>
                <% end %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    生日: 
                </div>
                <%= f.date_select :birthday %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    星座: 
                </div>
				<%= f.select :constellation_id, DConstellation.find(:all).map {|c| [ c.constellation_name, c.id ] },{:prompt => " "} %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    QQ: 
                </div>
                <%= f.text_field :qq , "size" => 20 %>
				<% for s in DSecrecyType.find(:all) %>
                <%=radio_button_tag( "d_secrecy_type1",s.id, s.id==@user_detail.qq_secrecy_id ? true:false, :class => "radio"  ) %><%= h(s.secrecy_type_name) %>
                <% end %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    MSN: 
                </div>
                <%= f.text_field :msn , "size" => 20 %>
                <% for s in DSecrecyType.find(:all) %>
                <%=radio_button_tag( "d_secrecy_type2",s.id, s.id==@user_detail.msn_secrecy_id ? true:false, :class => "radio"  ) %><%= h(s.secrecy_type_name) %>
                <% end %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    行业/职业: 
                </div>
				<%= f.select :indestry_id, DIndustry.find(:all).map {|c| [ c.industry_name, c.id ] },{:prompt => " "} %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    毕业学校: 
                </div>
                <%= f.text_field :college , "size" => 20 %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    个人主页: 
                </div>
                <%= f.text_field :home_page , "size" => 30 %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    爱好: 
                </div>
                <%= f.text_area :interest ,"cols" => 30, "rows" => 5 %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    电影/导演/演员: 
                </div>
                <%= f.text_area :movie ,"cols" => 30, "rows" => 5 %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    音乐/歌曲/歌手: 
                </div>
                <%= f.text_area :music ,"cols" => 30, "rows" => 5 %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    书/作者: 
                </div>
                <%= f.text_area :literature , "cols" => 30, "rows" => 5 %>
                <div class="blank14">
                </div>
                <div class="titleName">
                    菜肴/菜系/餐馆: 
                </div>
                <%= f.text_area :food ,"cols" => 30, "rows" => 5 %>
                <div class="info">
					<div id="divSubmit">
						<span class="btns"><%= link_to '<span>更  新</span>',{}, {:id=>'btnLogin',:onclick=>'javascript:document.forms[0].submit();return false;'} %></span>
						<!--<span class="btns"><%= link_to '<span>显  示</span>', @user %></span>-->
						<span class="btns"><%= link_to '<span>返  回</span>', users_path %></span>
					</div> 
                </div>
            </div>
        </div>
    </div>
    <% end %>
    <% end %>
</div>
<!-- 
<%= link_to '显示', @user %> |<%= link_to '返回', users_path %>
-->
</div>